<?php


namespace app\index\business;


use app\common\model\Message;
use think\Exception;

class messageBus
{
    public function addMessageBus($data){
        $messageModel = new Message();
        $res = $messageModel->addItem($data);
        if(empty($res)){
            throw new Exception('留言失败，请检查留言信息');
        }
        return $res;
    }
}